# coding:utf-8
# writingtime: 2022-8-2
import numpy as np


class Euclidean:
    @staticmethod
    def getresult(vector1, vector2):
        """
        :param vector1: 数据向量1
        :param vector2: 数据向量2
        :return: 欧几里得距离
        """
        temp1 = np.array(vector1)
        temp2 = np.array(vector2)
        result = sum((temp1 - temp2) ** 2) ** (1 / 2)
        return result
